package com.shujia.liaotian.bean;

import java.io.Serializable;

/**
 * java.io.NotSerializableException  不能序列化异常
 * Serializable 起到标记的作用
 */
public class Message implements Serializable {//可序列化
    private String fclientId;//发生方id
    private String jclientId;//接收方id
    private String msg;//消息内容

    public Message(String fclientId, String jclientId, String msg) {
        this.fclientId = fclientId;
        this.jclientId = jclientId;
        this.msg = msg;
    }

    public Message() {
    }

    @Override
    public String toString() {
        return "Message{" +
                "fclientId='" + fclientId + '\'' +
                ", jclientId='" + jclientId + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }

    public String getFclientId() {
        return fclientId;
    }

    public void setFclientId(String fclientId) {
        this.fclientId = fclientId;
    }

    public String getJclientId() {
        return jclientId;
    }

    public void setJclientId(String jclientId) {
        this.jclientId = jclientId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
